﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Bird : Animal, IFlyable
    {
        public void Fly()
        {
            Console.WriteLine("小鸟飞行中——————");
        }

        public void Land()
        {
            Console.WriteLine("小鸟落地");
        }

        public void TakeOff()
        {
            Console.WriteLine("小鸟起飞");
        }
        public void LayEggs() 
        {
            Console.WriteLine("---下蛋。");
        }
        public override void Eat()
        {
            Console.WriteLine("吃虫！");
        }
        public void Print() 
        {
            TakeOff();
            Fly();
            Land();
            LayEggs();
            Eat();
        }

        
    }
}
